package com.archgeek.java.biz.idmapping;


import com.alibaba.fastjson.JSONObject;
import com.google.common.base.Joiner;

import java.util.ArrayList;
import java.util.List;

/**
 * @author pizhihui
 * @date 2024-01-09 18:17
 */
public class IdMappingPreSplitsDemo {


    public static List<String> getAlphabet() {
        List<String> alphabet = new ArrayList();
        for (char c = 'a'; c <= 'z'; c++) {
            alphabet.add(c + "");
        }
        return alphabet;
    }

    public static List<String> getNumber() {
        List<String> alphabet = new ArrayList<>();
        for (int a = 0; a <= 9; a++) {
            alphabet.add(a + "");
        }
        return alphabet;
    }

    public static void main(String[] args) {

        List<String> letters = getAlphabet();
        System.out.println(letters);
        List<String> number = getNumber();
        System.out.println(number);

        List<String> all = new ArrayList<>();
        all.addAll(number);
        all.addAll(letters);

        List<String> items = new ArrayList<>();
        for (String s : all) {
            items.add("'" + s + "'");
        }
        String res = Joiner.on(",").join(items);
        res = "[" + res + "]";
        System.out.println(res);

    }
}
